package org.example.old.factory;

import org.example.old.handle.DebugInvocationHandler;

import java.lang.reflect.Proxy;

public class JdkProxyFactory {
    public static Object getProxy(Object target) {
        return Proxy.newProxyInstance(target.getClass().getClassLoader(), target.getClass().getInterfaces(),
                new DebugInvocationHandler(target));
    }
}
